package org.demo;

import java.util.Random;

/**
 * @author yexi
 */
public class Dog {

    public void swim() {
        System.out.println("狗开始游泳");
        //模拟消耗的时间
        try {
            Thread.sleep(new Random().nextInt(1000));
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }


}
